package com.zmzncs.lmtc.module.order.pojo.orderreserve;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 预约记录表
 * </p>
 *
 * @author 任建波
 * @since 2020-12-14
 */
@Data
public class ParkReserveRecordSearchForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页")
    @NotNull
    private Integer currentPage;

    @ApiModelProperty(value = "每页多少条")
    @NotNull @Max(100)
    private Integer size;

    public Page getPage() {
        return new Page(currentPage, size);
    }

}
